import numpy as np

if __name__ == "__main__":
    A = np.array([[1, 1],
                  [2, 2],
                  [0, 0]])

    U, S, VT = np.linalg.svd(A)

    print(U)
    # [[-0.4472136  -0.89442719  0.        ]
    #  [-0.89442719  0.4472136   0.        ]
    #  [ 0.          0.          1.        ]]

    print(S)
    # [3.16227766e+00 1.57009246e-16]

    print(VT)
    # [[-0.70710678 -0.70710678]
    #  [-0.70710678  0.70710678]]
